#!/bin/bash

. $LKP_SRC/lib/job.sh
load_job_vars os

if [ $os == "openeuler" ] || [ $os == "centos" ];then
	yum -y -q install pciutils
	yum -y -q install ruby
	yum -y -q install lshw
	gem install facter
	lshw -version
elif [ $os == "debian" ];then
	apt-get -yq install pciutils
	apt-get -yq install ruby
	gem install facter
	apt-get -yq install git
	git clone --branch B.02.18 https://ezix.org/src/pkg/lshw.git
	apt-get -yq install make
	apt-get -yq install g++
	apt-get -yq install gettext
	cd lshw
	make 
	make install
fi
